Skip to content

Instantly share code, notes, and snippets.

@ddbeck

ddbeck/index.md Secret

Last active April 1, 2021 19:00
Show Gist options
  • Save ddbeck/eeb8b107a1ca1cdc5ec1d2a893236e6a to your computer and use it in GitHub Desktop.
Save ddbeck/eeb8b107a1ca1cdc5ec1d2a893236e6a to your computer and use it in GitHub Desktop.
notecard options

Option 1 (divs)

Source

<div class="notecard warning">

**My warning**: don't ever do this.
  
</div>

Abstract

<div class="notecard warning">

<p><strong>My warning</strong>: don't ever do this.</p>
  
</div>

Post-Yari

<!-- Yari does nothing -->
<div class="notecard warning">

<p><strong>My warning</strong>: don't ever do this.</p>
    
</div>

Option 1a (custom elements)

Source

<mdn-warning>

**My warning**: don't ever do this.
  
</mdn-warning>

Abstract

<mdn-warning>

<p><strong>My warning</strong>: don't ever do this.</p>
  
</mdn-warning>

Post-Yari

<!-- Yari subs out the custom element with a div of the corresponding class or styles against the custom element name directly --->
<div class="notecard warning">

<p><strong>My warning</strong>: don't ever do this.</p>
    
</div>

Option 2 (blockquotes)

Source

> ###### Note
> This could be a note

Abstract

<blockquote>
<h6>Note</h6>
<p>This could be a note.</p>
</blockquote>

Post-Yari

<!-- Yari finds blockquotes starting with an H6, strips the H6, and applies a class? Not entirely clear from Florian's description -->
<blockquote class="notecard note">
<p>This could be a note.</p>
</blockquote>

Option 3 (single paragraph)

Source

**Note:** This is a single paragraph note.

Abstract

<p><strong>Note:</strong> This is a single paragraph note.</p>

Post-Yari

<!-- Yari finds paragraphs starting with `<strong>Note:</strong>` and applies a class? -->
<p class="notecard note"><strong>Note:</strong> This is a single paragraph note.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment